package com.zh.service.impl;
import java.util.Date;

import com.zh.pojo.domain.DriverAuthMaterial;
import com.zh.pojo.domain.DriverMaterialAuthLog;
import com.zh.mapper.DriverMaterialAuthLogMapper;
import com.zh.service.IDriverMaterialAuthLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 材料审核日志 服务实现类
 * </p>
 *
 * @author 初四
 * @since 2024-06-13
 */
@Service
public class DriverMaterialAuthLogServiceImpl extends ServiceImpl<DriverMaterialAuthLogMapper, DriverMaterialAuthLog> implements IDriverMaterialAuthLogService {

    @Override
    public void create(DriverAuthMaterial authMaterial) {
        DriverMaterialAuthLog authLog = new DriverMaterialAuthLog();
        authLog.setAuthMaterialId(authMaterial.getId());
        authLog.setRealAuthStatus(authMaterial.getRealAuthStatus());
        authLog.setAuditTime(authMaterial.getAuditTime());
        authLog.setAuditUserId(authMaterial.getAuditUserId());
        authLog.setAuditRemark(authMaterial.getAuditRemark());
        authLog.setCreateTime(new Date());
        super.save(authLog);
    }
}
